<!--  таблица корневых каталогов -->
<?php use_helper('jQuery') ?>
           <div id="close_folder_indicator_<?php echo $cur_f->getId() ?>" style="display: none">
			<?php echo image_tag('/images/indicator.gif') ?>&nbsp;&nbsp;<font color="red"><?php echo __('закрываю')?>...</font>
			</div>

        <?php $cur_filter = sfContext::getInstance()->getUser()->getAttribute('material.filters_folder'); ?>
		<?php if (@in_array($cur_f->getId(),$cur_filter)):?>
		<div style="float: left; padding-top:3px"><?php echo image_tag('/images/icons/filter.gif')?></div>
		<?php endif ?>

        <div style="float:left;border:0px solid red; white-space: nowrap; padding-left: <?php echo $cur_f->getLevel()*10?>px;">
        <?php 
	                echo jq_link_to_remote(image_tag('/images/icons/folder_open.gif'), array(
				    'update' => 'dir_'.$cur_f->getId(),
	                'script'=>'true',
				    'url'    => 'folder_tools/close_folder?id='.$cur_f->getId(),
				    'loading'  => "$('#close_folder_indicator_".$cur_f->getId()."').show()",
				    'complete' => "$('#close_folder_indicator_".$cur_f->getId()."').hide()"  
				    ),'style="background: none"');
	                ?>			
   
         <?php echo mb_substr($cur_f,0,20,'utf-8') ?> 
        </div> 
        <?php include_partial('folder_tools/static_tools',array('f'=>$cur_f));?>
	 
	 <div style="width:100%; height:20px; border: 0px solid red;"></div>
        
         
   
		<?php foreach($folders as $f): ?>
		<?php include_partial('folder_tools/item',array('f'=>$f))?>
		<?php endforeach?>
 